package com.huatai.bi.feign;

import com.huatai.bi.dto.BigScreenPageDTO;
import com.huatai.bi.service.BigScreenPageService;
import com.huatai.common.api.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/bi/feign")
@Api(value = "BI服务暴露接口", tags = "BI服务暴露接口")
public class BiApiController implements BiClient{
	@Autowired
	private BigScreenPageService bigScreenPageService;

	@PostMapping("/addScreen")
	@ApiOperation(value = "新增态势")
	public R<String> addScreen(@RequestBody BigScreenPageDTO dto){
		System.out.println("feign调用新增态势");
		return R.data(bigScreenPageService.addScreen(dto),"操作成功");
	}
}
